<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    	<title>Time</title>
    	<script type="text/javascript">
      		window.onload = testTime;

      		function testTime() {
        		var nowDate = new Date();
        		document.write(nowDate.getHours() + ":" + nowDate.getMinutes() + ":"
        			+ nowDate.getSeconds() + ":" + nowDate.getMilliseconds() + "<br/>");
        		document.write(nowDate.toTimeString() + "<br/>");

		        nowDate.setHours(10);
		        nowDate.setMinutes(20);
		        nowDate.setSeconds(30);
		        nowDate.setMilliseconds(40);
		        document.write(nowDate.toTimeString() + "<br/>");
		        // nowDate.setMinutes(64); 将小时数加1, 分钟数为4
      		}
    	</script>
  	</head>
  	<body>
  	</body>
</html>
